
	function platform($field, $value, $fieldinfo) {
		$value = (int) $value;
		$string = '<input type="hidden" name="info['.$field.']" id="'.$field.'_id" value="'.$value.'"/>';
		$platform_name = '';
		if ($value > 0) $platform_name = M('Platform')->getFieldById($value, 'name');	
		$string .= '<input type="text" class="input-text" id="'.$field.'_name" value="'.$platform_name.'" disabled />';
		$string .= "<input type=\"button\" style=\"width: 66px;\" class=\"button\" onclick=\"omnipotent('".$field."_dialog', '".U('Document/Platform/public_select')."', '选择平台', '1');return false;\" value=\"选择平台\">";
		return $string;
	}